package com.imporven.sell.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.imporven.sell.domain.OrderDetail;
import com.imporven.sell.util.serializer.Date2LongSerializer;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author imporven
 * @version 1.0.0
 * @date 2018-7-14 23:54
 * 订单
 */
@Data
public class OrderDTO {

    /** 订单主数据id */
    private String orderId;
    /** 买家姓名 */
    private String buyerName;
    /** 买家电话 */
    private String buyerPhone;
    /** 买家地址 */
    private String buyerAddress;
    /** 买家openid */
    private String buyerOpenid;
    /** 订单金额 */
    private BigDecimal orderAmount;
    /** 订单状态 */
    @JsonIgnore
    private Integer orderStatus;
    /** 支付状态 */
    @JsonIgnore
    private Integer payStatus;
    /** 创建时间 */
    @JsonSerialize(using = Date2LongSerializer.class)
    private Date createTime;
    /** 修改时间 */
    @JsonSerialize(using = Date2LongSerializer.class)
    private Date updateTime;
    /** 商品列表 */
    private List<OrderDetail> orderDetailList;

}
